<!--{template touch/common/header}-->
<style>
    .signin-mobile {
        padding: 15px;
    }
    .signin-card {
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        padding: 15px;
        margin-bottom: 15px;
    }
    .user-info-mobile {
        display: flex;
        align-items: center;
        margin-bottom: 10px;
    }
    .user-avatar-mobile {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        margin-right: 10px;
    }
    .stats-item-mobile {
        margin: 6px 0;
        display: flex;
        justify-content: space-between;
        font-size: 14px;
    }
    .signin-result {
        text-align: center;
        padding: 15px 0;
    }
    .error-mobile {
        color: #f56c6c;
        font-size: 14px;
    }
    .success-info-mobile {
        color: #67c23a;
        font-size: 16px;
        font-weight: bold;
    }
</style>

<div class="signin-mobile">
    <div class="signin-card">
        <div class="user-info-mobile">
            <img src="{$_G['siteurl']}uc_server/avatar.php?uid=$uid&size=small" class="user-avatar-mobile">
            <div>
                <h4 style="margin:0;font-size:16px;">{$_G['username']}</h4>
            </div>
        </div>
        
        <div class="stats-item-mobile">
            <span>累计签到:</span>
            <strong>$total_days</strong>
        </div>
        <div class="stats-item-mobile">
            <span>连续签到:</span>
            <strong>$continuous_days</strong>
        </div>
        <div class="stats-item-mobile">
            <span>本月签到:</span>
            <strong>$month_days</strong>
        </div>
    </div>

    <div class="signin-card">
        <!--{if $is_signed}-->
            <div class="signin-result">
                <p class="error-mobile">今日已签到</p>
                <p>连续签到: <strong>$continuous_days</strong></p>
            </div>
        <!--{else}-->
            <div class="signin-result">
                <p class="success-info-mobile">签到成功</p>
                <p>获得积分: <strong>$credit</strong></p>
                <p>连续签到: <strong>$continuous_days</strong></p>
            </div>
        <!--{/if}-->
    </div>

    <div class="signin-card">
        <h4 style="margin-top:0;font-size:16px;">签到统计</h4>
        <div class="stats-item-mobile">
            <span>今日签到:</span>
            <strong>$today_count</strong>
        </div>
        <div class="stats-item-mobile">
            <span>本月签到:</span>
            <strong>$month_count</strong>
        </div>
    </div>
</div>

<!--{template touch/common/footer}-->